NQA与BFD联动VRRP练习 | 您所在的位置:网站首页 › vrrp nqa track › NQA与BFD联动VRRP练习 |
这次采用一个经典的mstp+链路聚合+vrrp的实验,应该没有人没敲过这个拓扑吧 不过这次并不做这个拓扑,只是借用此拓扑练习下链路检测机制NQA和BFD 左边SW2配NQA监测SW2到R1这条路 右边SW1配BFD监测SW1到R1这条路 nqa和bfd的区别就是nqa不需要对端支持,bfd需要对端支持,但其实bfd配置单臂bfd效果也是一样的 NQA第一步在SW2上建立NQA实例,NQA参数很多,以下只是一些常用的参数 监测的是SW2到R1这条路 注意frequency取值必须大于timeout和probe-count取值的乘积 # nqa test-instance 1 13——NQA名称1 13 test-type icmp——发送数据类型 destination-address ipv4 1.1.1.1——会话另一端ip,只要路由能到达就行 frequency 10——一秒发送多少次 interval seconds 3 ——测试报文的发送间隔 timeout 1——超时时间 probe-count 3——1次探测的次数 start now——立即启动 #第二步SW2的vrrp绑定NQA,NQA每次检测到链路断开 ,vrrp的优先级就-2 [SW1-Vlanif10]vrrp vrid 1 track nqa 1 13 reduced 2让中间断一下 优先级变成了118,最初配置的是120,倒数几行能看到绑定的nqa名字,降权多少和nqa状态 [SW1-Vlanif10]dis vrrp Vlanif10 | Virtual Router 1 State : Master Virtual IP : 192.168.1.254 Master IP : 192.168.1.3 PriorityRun : 118 PriorityConfig : 120 MasterPriority : 118 Preempt : YES Delay Time : 30 s TimerRun : 1 s TimerConfig : 1 s Auth type : NONE Virtual MAC : 0000-5e00-0101 Check TTL : YES Config type : normal-vrrp Track NQA : 1 13 Priority reduced : 2 NQA state : failed Create time : 2023-03-31 21:05:26 UTC-08:00 Last change time : 2023-03-31 21:06:10 UTC-08:00BFD单臂模式提示只能在组播模式下配置,还没搞明白是什么意思,算了先练习正常模式 [Huawei]bfd 5 bind peer-ip 192.168.14.1 interface g0/0/1 one-arm-echo Error: The Layer 2 interface can be configured only in multicast mode.第一步SW4先建立个BFD BFD名称叫1,对端ip为192.168.14.1,本地标识符为10,对端标识符为20 # bfd 1 bind peer-ip 192.168.14.1 source-ip 192.168.14.2 discriminator local 10 discriminator remote 20 commit #第二步在对端R1也建立BFD,就是目标ip和源ip,本地标识符和对端标识符交换下位置 # bfd 1 bind peer-ip 192.168.14.2 source-ip 192.168.14.1 discriminator local 20 discriminator remote 10 commit #验证bfd状态,已经起来了 [Huawei-bfd-session-1]dis bfd se all -------------------------------------------------------------------------------- Local Remote PeerIpAddr State Type InterfaceName -------------------------------------------------------------------------------- 20 10 192.168.14.2 Up S_IP_PEER - -------------------------------------------------------------------------------- Total UP/DOWN Session Number : 1/0SW4上vrrp绑定bfd [Huawei-Vlanif20]vrrp vrid 2 track bfd-session 1 reduced 5 Error: The BFD session does not exist.翻车了呀,显示bfd不存在,明明bfd 1状态都up的,再三确认bfd的session确实是1 莫非是三层交换机的问题? 有没有大佬能解达一下 |
CopyRight 2018-2019 实验室设备网 版权所有 |